﻿#ifndef DACORE_H
#define DACORE_H
#include "DACoreInterface.h"
class DAAppRibbonArea;

/**
 * @brief DA的核心接口,作为单例存在
 */
class DACore : public DACoreInterface
{
    Q_OBJECT
    DACore(QObject *p = nullptr);
public:
    static DACore *getInstance();

    //获取DAAppRibbonAreaInterface
    virtual DAAppRibbonAreaInterface *getAppRibbonAreaInterface() const override;

    //调用此函数，创建DAAppRibbonAreaInterface，此函数的调用应该发生在SARibbonMainWindow的构造过程
    virtual void createAppRibbonArea(SARibbonMainWindow *mainwindow) override;

private:
    DAAppRibbonArea *m_appRibbonArea;
};

#endif // DACORE_H
